package main

import (
	"fmt"
    "math/rand"
    "time"
    "strconv"
)

type CardServiceHandler struct {
    CardType           uint //
    CityCode           string
    Extra              string //扩展字段
    CardIndex          int //查询已绑卡的时候会返回已有的cardIndex
    Uid                string
    Uname              string
    Cid                string
    IsAllowMuli        bool                  //当前卡种是否允许同时存在多张（比如多张行驶证，多张出生证）
}

func main() {
	a, i := test()
	fmt.Printf("a: %s, i: %d\n\r", a, i)
    /*for {
        if 90 < Generate_Randnum() {
            break
        }
    }*/
    ts, _ := strconv.Atoi("03436348")
    fmt.Printf("test: %d\n", ts)

    str := "LGBH52E02GY134778"
    fmt.Println(str[len(str)-6:len(str)])

    v2 := 0
    fmt.Println(fmt.Sprint(v2))
}

func test() (a string, i int) {
	a = "test"
	i = 100
	return
}

func (handler *CardServiceHandler) p() {
    fmt.Println("getCardDetail error, handler:", *handler)
}

func CreateCaptcha() string {
    return fmt.Sprintf("%08v", rand.New(rand.NewSource(time.Now().UnixNano())).Int31n(100000000))
}